'use strict';
const requireEx =require('yi-require');
const $ = requireEx('yi-schema');

module.exports = {
  body: $.object({
    _id: $.mongoid().required().description("_id"),
    backgroundPicPath:$.string().description("背景图片路径"),
    nickname:$.string().min(1).max(16).description("昵称"),
    headPicPath:$.string().description("头像图片路径"),
    birthday:$.date().description("出生日期"),
    city:$.string().description("城市"),
    tel:$.mobile().description("绑定手机"),
    careID:$.array().items($.mongoid()).description("关注者ID"),
    fansID:$.array().items($.mongoid()).description("粉丝ID"),
    context:$.string().min(1).max(50).description("签名"),
    commentState:$.number().valid(1,0).description("评论状态，1：允许评论，0：不允许评论")
  })
};